package com.ruoyi.inventory.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inventory.mapper.BizStockCheckMapper;
import com.ruoyi.inventory.domain.BizStockCheck;
import com.ruoyi.inventory.service.IBizStockCheckService;
import com.ruoyi.common.core.text.Convert;

/**
 * 库存盘点记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
@Service
public class BizStockCheckServiceImpl implements IBizStockCheckService 
{
    @Autowired
    private BizStockCheckMapper bizStockCheckMapper;

    /**
     * 查询库存盘点记录
     * 
     * @param checkId 库存盘点记录主键
     * @return 库存盘点记录
     */
    @Override
    public BizStockCheck selectBizStockCheckByCheckId(Long checkId)
    {
        return bizStockCheckMapper.selectBizStockCheckByCheckId(checkId);
    }

    /**
     * 查询库存盘点记录列表
     * 
     * @param bizStockCheck 库存盘点记录
     * @return 库存盘点记录
     */
    @Override
    public List<BizStockCheck> selectBizStockCheckList(BizStockCheck bizStockCheck)
    {
        return bizStockCheckMapper.selectBizStockCheckList(bizStockCheck);
    }

    /**
     * 新增库存盘点记录
     * 
     * @param bizStockCheck 库存盘点记录
     * @return 结果
     */
    @Override
    public int insertBizStockCheck(BizStockCheck bizStockCheck)
    {
        return bizStockCheckMapper.insertBizStockCheck(bizStockCheck);
    }

    /**
     * 修改库存盘点记录
     * 
     * @param bizStockCheck 库存盘点记录
     * @return 结果
     */
    @Override
    public int updateBizStockCheck(BizStockCheck bizStockCheck)
    {
        return bizStockCheckMapper.updateBizStockCheck(bizStockCheck);
    }

    /**
     * 批量删除库存盘点记录
     * 
     * @param checkIds 需要删除的库存盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteBizStockCheckByCheckIds(String checkIds)
    {
        return bizStockCheckMapper.deleteBizStockCheckByCheckIds(Convert.toStrArray(checkIds));
    }

    /**
     * 删除库存盘点记录信息
     * 
     * @param checkId 库存盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteBizStockCheckByCheckId(Long checkId)
    {
        return bizStockCheckMapper.deleteBizStockCheckByCheckId(checkId);
    }
}
